<?php
namespace soa\orders\v1\batch;

use soa\client;

class order extends client{
    /**
     * @var string
     */
    protected $service_url = 'http://order.core.kuaidihelp.com/';

    /**
     * @var string
     */
    protected $service_name = 'kuaidihelp_order2';

    //添加任务订单
    public function insert($taskId,$orderId)
    {
        return $this->post('v1/batch/order/insert', compact('taskId','orderId'));
    }

    //根据任务id查询
    public function getByTaskId($taskId,$limit = [],$orderBy = "id DESC")
    {
        return $this->post('v1/batch/order/getByTaskId', compact('taskId','limit','orderBy'));
    }

    //根据订单id查询
    public function getByOrderId($orderId)
    {
        return $this->post('v1/batch/order/getByOrderId', compact('orderId'));
    }
}